The Week View component > FWeekView.getCellData()

 

FWeekView.getCellData()

Availability

Flash Player 6.

Usage

myWeekView_wkv.getCellData(date)

Parameters

none

Returns

Returns an array of data associated with the passed in date.

Description

Returns an array of data associated with the passed in date. Data can be associated with a specific date using the setCellData method, and can be of any type.

 

Example

The week_example2.fla example file contains an example of using this method.

The following code creates an array containing strings, and then stores it in the component.

var dateObj = new Date( );
var data = ["One","Two","Three"];

myWeekView_wkv.setCellData( data,dateObj );

var dateData = myWeekView_wkv.getCellData( dateObj );
trace( "Data: " + dateData[1] ); //traces "Data: Two"

See also

FWeekView.getCellData()